		function checkDeletAlbum() {
        	var delAlbums = document.getElementsByName("deletingAlbum");
        	var count = 0;
        	for(var i=0; i<delAlbums.length; i++) {
        		if(delAlbums[i].checked) {
        			count ++;
        		}
        	}
        	if(count == 0) {
        		alert("还没有选择要删除的照片呢！");
        		return false;
        	}
        	else {
        		var mymessage = confirm("已选中" + count + "个相册，确定删除？");
        		if(mymessage==true) {
        			return true;
        		}
        		else {
        			return false;
        		}
        	}
        }
		
		function checkBatchPhoto() {
        	var batchPhoto = document.getElementsByName("batchPhoto");
        	var count = 0;
        	for(var i=0; i<batchPhoto.length; i++) {
        		if(batchPhoto[i].checked) {
        			count ++;
        		}
        	}
        	if(count == 0) {
        		alert("还没有选择照片呢！");
        		return false;
        	}
        	else {
        		var mymessage = confirm("已选中" + count + "张照片，确定操作？");
        		if(mymessage==true) {
        			return true;
        		}
        		else {
        			return false;
        		}
        	}
        }
		
		function selectedAll() {
			var batchPhoto = document.getElementsByName("batchPhoto");
			
			for(var i=0; i<batchPhoto.length; i++) {
				batchPhoto[i].checked = true;
        	}
			
		}
		
		function selectedAgainst() {
			var batchPhoto = document.getElementsByName("batchPhoto");
			
			for(var i=0; i<batchPhoto.length; i++) {
				if(batchPhoto[i].checked) {
					batchPhoto[i].checked = false;
				}
				else {
					batchPhoto[i].checked = true;
				}
        	}
			
		}
		
		function checkChangingPassword() {
			var oldpassword = document.getElementById("oldpassword").value;
			var newpassword = document.getElementById("newpassword").value;
			var newpassword2 = document.getElementById("newpassword2").value;
			
			
			if(oldpassword.length == 0) {
				alert("还没有输入原密码！");
				return false;
			}
			else if(newpassword.length == 0) {
				alert("还没有输入新密码！");
				return false;
			}
			else if(newpassword2.length == 0) {
				alert("还没有输入确认新密码！");
				return false;
			}
			else if(oldpassword.length<6 || oldpassword.length>12) {
				alert("原密码位数不对哦！");
				return false;
			}
			else if(newpassword.length<6 || newpassword.length>12) {
				alert("新密码位数不对哦！");
				return false;
			}
			else if(newpassword2.length<6 || newpassword2.length>12) {
				alert("确认密码位数不对哦！");
				return false;
			}
			else if(newpassword != newpassword2) {
				alert("两次新密码输入不一致！");
				return false;
			}
			else {
				return true;
			}
			
			
			
		}
		
		function checkFriend() {
			
			var friendName = document.getElementById("findusername").value;
			
			if(friendName.length == 0 || friendName=="") {
				alert("还没输入要查找的好友名称，伦家怎么找嘛！");
				return false;
			}
			else if(friendName.length<3 || friendName.length>20) {
				alert("是不是出错了人家的名字！");
				return false;
			}
			else {
				return true;
			}
			
		}
		
		function confirmDel() {
			
			var confrim = window.confirm("确定要删除该朋友？");
			if(confirm) {
				return true;
			}
			
			else {
				return false;
			}
			
		}
		
		
		
		
		
		
		
		
		